package com.wanmait.baohan.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.pojo.BookingHotelApplication;
import com.wanmait.baohan.pojo.HotelAccount;
import com.wanmait.baohan.pojo.HotelApproval;

import java.util.List;


public interface BookingHotelService extends CommonService<BookingHotelApplication> {

    PageInfo<BookingHotelApplication> selectMyHotelApplications(Integer page, Integer limit, BookingHotelApplication hotelApplication);
    void updateByHotel(Integer userId,Integer trvalId);

    PageInfo<BookingHotelApplication> findAllWithPageAndLimit(Integer page, Integer limit, BookingHotelApplication bookingHotelApplication);

    void submitApprove(HotelApproval hotelApproval);
    BookingHotelApplication findByHotel(BookingHotelApplication bookingHotelApplication);

    BookingHotelApplication selectByReId(Integer id);

    List<HotelAccount> findBookingListById(Integer id);
}
